# docker build --tag registry.yuedaowang.com/ydx_main:0.1.0 .

FROM registry.yuedaowang.com/java:1.8.0_242

ENV LANG en_US.UTF-8  
ENV LANGUAGE en_US:en  
ENV LC_ALL en_US.UTF-8

ENV HOME /root
ENV SRC keycloak_admin

COPY settings.xml /usr/share/maven/conf/settings.xml

WORKDIR $HOME/$SRC

# Copy source code to docker if no git server
COPY . $HOME/$SRC

RUN mvn clean package spring-boot:repackage

EXPOSE 9092
